package com.devops.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.devops.admin.model.DOSProjectUserRelation;
import com.devops.admin.po.DOSProjectUserRelationPo;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * @ClassNem DOSProjectUserRelationService
 * @Description TODO
 * @Author heyabo
 * @Date 2022/3/23 09:26
 * @Version 1.0
 **/
public interface DOSProjectUserRelationService extends IService<DOSProjectUserRelation> {

    /**
     * @Author heyabo
     * @Description 为项目分配人员
     * @Date 14:52 2022/3/23
     * @Param [relation]
     * @return java.lang.Boolean
     **/
    void distributionUser(List<DOSProjectUserRelation> relations,Integer projectId,Integer userType);

    /**
     * 移除项目已分配的人员
     * @return
     */
    Integer removeProjectUserRelation(Integer relationId);

    /**
     * @Author lvpengchao
     * @Description 查询项目绑定的人员
     * @Date 11:32 2022/9/8
     * @Param [projectId]
     * @return java.util.List<com.devops.admin.po.DOSProjectUserRelationPo>
     **/
    List<DOSProjectUserRelationPo> getProjectUsers(Integer projectId,Integer userType);
}
